laravel check if form has errors

43

laravel check if form has errors -

@if ($errors->any())
<ul>
    @foreach ($errors->all() as $error)
    <li class="text-red-500 text-xs">{{ $message }}</li>
    @endforeach
</ul>
@endif

Comments

Submit
0 Comments